package com.javaee.ioc.javaconfig;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;
import org.springframework.stereotype.Component;

@Configuration
@ComponentScan(basePackages = "com.javaee.ioc.annotation")
public class JavaConfig {

    @Bean
    public MyBean myBean(){
        return new MyBean();
    }
}
